package main.java.io;

import java.io.FileOutputStream;
import java.io.IOException;

public class FOSDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("E:\\51_home-work\\homework\\src\\main\\resource\\fos.txt");
        int d= 97;//将int型写入文件中
        fos.write(d);
        fos.close();//关闭文件流
    }
}
